package com.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: HuangDekai
 * @date: 2022/11/23 10:54
 * @version: 1.0
 * @since: jdk8
 * @description: Ribbon 自定义规则
 */

@Configuration
public class MyRule {

    @Bean
    public IRule iRule() {
        return new RandomRule();
    }
}
